x86/soft-reset: Drop gfn reference after calling get_gfn_query()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Feb 2019 10:29:16 +0000 (11:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Feb 2019 10:29:16 +0000 (11:29 +0100)
commit0b2be0bd82b889d71be1c2004fb3099c7dba4c6d
treebcc616d1995ab63c3977ae679c9e4e961bb18ca2
parent7d1bd985ebd4c1473c4dfd50b6d3a33c8e1b1a93
x86/soft-reset: Drop gfn reference after calling get_gfn_query()

get_gfn_query() internally takes the p2m lock, and this error path leaves it
locked.

This wasn't included in XSA-277 because the error path can only be triggered
by a carefully timed phymap operation concurrent with the domain being paused
and the toolstack issuing DOMCTL_soft_reset.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: e7969e917cef276318f722a607985a2e896aeb94
master date: 2018-11-22 17:58:46 +0000
xen/arch/x86/domain.c